package com.sys.service.impl;

import com.sys.mapper.RoleMapper;
import com.sys.model.Role;
import com.sys.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2016/11/25.
 */
@Service("roleService")
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;


    @Override
    public Role selectByName(String name) {
        Role role=roleMapper.selectByName(name);
        return role;
    }
}
